package routers

import (
	"advertising/internal/app/web/controller"

	"github.com/gin-gonic/gin"
)

func MaterialRouter(r *gin.RouterGroup) {
	r.POST("save", controller.Material{}.Save)
	r.POST("list", controller.Material{}.List)
	r.POST("delete", controller.Material{}.Delete)
	r.POST("material-in-use-list", controller.Material{}.MaterialInUseList)
	r.POST("auditing-count", controller.Material{}.AuditingMaterialCount)
	r.POST("move-folder", controller.Material{}.MoveFolder)

	// 分组
	r.POST("folder-save", controller.Material{}.FolderSave)
	r.POST("folder-list", controller.Material{}.FolderList)
	r.POST("folder-delete", controller.Material{}.FolderDelete)
	r.POST("folder-sort", controller.Material{}.FolderSort)
}
